package com.demo.webflux.spring5core.test.service;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.demo.webflux.spring5core.framework.annotation.Service;

@Service
public class QueryService {

	/**查询
	 * @param name
	 * @return
	 */
	public String query(String name) {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		String time = sdf.format(new Date());
		String json = "{name:\"" + name + "\", time:\"" + time + "\"}";
		return json;
	}

}
